import axios from 'axios';

export default async function UrlProxy(url, type, param) {
    switch (type) {
        case 'post':
            return await axios.post(url, param);
            break;
        case 'get':
            return await axios.get(url);
            break;
        default:
            return await axios.get(url);
            break;
    }
}
